package cn.edu.gzgs.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 批量操作结果视图对象
 *
 * @author Zyf
 */
@Data
@Schema(description = "批量操作结果")
public class BatchOperationResultVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "成功数量")
    private int successCount;

    @Schema(description = "失败数量")
    private int failureCount;

    @Schema(description = "失败详情列表，key为失败的ID，value为失败原因")
    private List<FailureDetail> failures;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Schema(description = "失败详情")
    public static class FailureDetail {
        @Schema(description = "失败的ID")
        private Long id;
        @Schema(description = "失败原因")
        private String reason;
    }
} 